package com.dunke.core.html;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class User implements Serializable {

    /**
     * 账号
     */
    @NotNull(message = "用户账号不能为空")
    private String account;

    /**
     * 密码
     */
    @NotNull(message = "用户密码不能为空")
    @Size(min = 6, max = 11, message = "密码长度必须是6-11个字符")
    private String password;
}
